/**
 * 专业管理
 */

import request from "@/utils/request.js"

//查询专业列表
export function majorListApi(params) {
    return request({
        url: '/edu/major/list',
        method: 'POST',
        params
      })
  }
  //新增专业
export function majorAddApi(data) {
    console.log(data);
    return request({
        url: '/edu/major/add',
        method: 'POST',
        params: data
      })
  }

// //专业选择下拉列表
// export function majorDropApi(data) {
//   console.log(data);
//   return request({
//       url: '/edu/major/majorlistOfDrop-down',
//       method: 'POST',
//       params: data
//     })
// }


  //删除专业
  export function majorDelApi(data) {
    console.log(data);
    return request({
        url: '/edu/major/remove',
        method: 'POST',
        params: data
      })
  }


    //修改专业
export function majorEditApi(data) {
  console.log(data);
  return request({
      url: '/edu/major/edit',
      method: 'POST',
      params: data
    })
}
